import http from '@/utils/request'
const URL = '/breed/dovecoteEntryBill';

export function getAllInfoByPage(pageNum = 1, pageSize = 10,data) {
    return http({
        url:`${URL}/findBillByDovecoteAndType?baseId=${data.baseId}&dovecoteNumber=${data.dovecoteNumber}&type=${data.type}&pageNum=${pageNum}&pageSize=${pageSize}`,
        method: 'get',
    })
}


//添加订单
export function AddOrder(data) {
    return http({
        url:`${URL}/submitDovecoteOutBill`,
        method: 'post',
        data
    })
}

//通过type查询订单详细
export function getInfoByType(data) {
    return http({
        url: `/breed/dovecoteEntryBase/get`,
        method: 'post',
        data
    })
}

//通过id删除订单
export function deleteOrder(id) {
    return http({
    url: `${URL}/delete/${id}`,
    method:'get'
  })
}

export function getAllEntryBillByIdAndType(data) {
    return http({
    url: `/breed/shipmentEntryBill/getAllEntryBillByIdAndType/`,
    method:'get',
    data
  })
}